/* 顶部时间及登录注册栏 */
.top-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
}

.time {
    font-size: 14px;
}

.top-links>.link {
    margin-left: 15px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    cursor: pointer; /* 添加这一行，使鼠标悬停时显示为小手指 */
}

.top-links>.link:hover {
    color: #f00;
}

/* 头部导航及logo区域 */
.header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    width: 120px; /* 根据实际 Logo 调整 */
    height: auto;
}

.nav-categories {
    display: flex;
    gap: 15px;
    margin-left: 20px;
}

.category {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

/* 外层容器：负责给结果列表提供相对定位参考 */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* 搜索栏占据剩余空间 */
    max-width: 600px; /* 限制搜索栏最大宽度 */
    margin: 0 30px; /* 与两侧导航保持间距 */
}

/* 中间搜索栏 */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px; /* 按钮和输入框间距更简洁 */
    /* 去掉 flex-grow: 1，避免和外层 .search-wrapper 冲突 */
    max-width: 600px;
    width: 100%;
}

.search-bar input:focus {
    border-color: #999; /* 聚焦时加深边框，增强交互感 */
}

/* 搜索按钮：独立样式，和输入框协调 */
.search-bar button {
    height: 25px;
    padding: 0 20px;
    border: none;
    border-radius: 4px;
    background-color: rgba(14, 122, 64, 0.81);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-bar button:hover {
    background-color: rgb(13, 115, 60); /* 悬停加深，反馈更明显 */
}
/* 搜索结果展示区域（假设需要展示时的基础样式，比如绝对定位等 ）*/
.show-storyList {

    position: absolute;
    top: 100%; /* 紧挨着搜索栏下方 */
    left: 0;
    width: 100%;
    max-width: 600px; /* 和搜索栏最大宽度一致，视觉对齐 */
    margin-top: 8px; /* 和搜索栏拉开间距 */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 更柔和的阴影 */
    z-index: 9999;
    overflow-y: auto;
    max-height: 300px;


}
/* 列表显示时的激活态（通过 JS 控制添加 .active 类） */
.show-storyList.active {
    display: block;
}

.show-storyList ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}


.show-storyList li {
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.show-storyList li:hover {
    background-color: #f8f9fa;
    color: #007bff; /* 文字变色，强化选中反馈 */
}


.category:hover {
    text-decoration: underline;
}

.sub-nav {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.sub-link {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.sub-link:hover {
    text-decoration: underline;
}


/* 主导航栏 */
.main-nav {
    display: flex;
    gap: 15px;
    padding: 8px 20px;
    background-color: #00b38a;
}

.main-nav-item {
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.main-nav-item:hover {
    text-decoration: underline;
}
/* APP 下载悬浮二维码（如果需要） */
.app-download {
    position: relative;
}
.app-qr {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px;
    z-index: 999;
    display: none;
}
.app-download:hover .app-qr {
    display: block;
}